package cn.terminus.client.customer.custombusiness.service;

import java.util.Date;

import cn.terminus.client.customer.custombusiness.param.CustomBusinessNewParam;
import cn.terminus.client.customer.custombusiness.param.CustomBusinessEditParam;
import cn.terminus.client.customer.custombusiness.param.CustomBusinessQueryParam;
import cn.terminus.client.customer.custombusiness.param.CustomBusinessDeleteParam;
import cn.terminus.client.customer.custombusiness.param.CustomBusinessGetsParam;
import cn.terminus.client.customer.custombusiness.result.CustomBusinessResult;

import cn.terminus.result.common.result.TerminusResult;
import cn.terminus.result.common.page.TerminusPageAble;
import cn.terminus.result.common.page.TerminusPageInfo;
import cn.terminus.result.common.exception.DataAccessException;
import cn.terminus.result.common.exception.ServiceException;
import cn.terminus.result.common.context.TerminusCallContext;

import java.util.List;

/**
 * (CustomBusiness)表服务接口
 *
 * @author makejava
 * @since 2021-07-08 11:18:38
 */
public interface CustomBusinessService {

    /**
     * 新增
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<String> add(CustomBusinessNewParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 更新
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<Boolean> update(CustomBusinessEditParam param, TerminusCallContext context) throws ServiceException;


    /**
     * gets
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<List<CustomBusinessResult>> gets(CustomBusinessGetsParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 删除
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<Boolean> delete(CustomBusinessDeleteParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 查询
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<List<CustomBusinessResult>> query(CustomBusinessQueryParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 分页查询
     *
     * @param param
     * @param page
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<TerminusPageAble<CustomBusinessResult>> page(CustomBusinessQueryParam param, TerminusPageInfo page, TerminusCallContext context) throws ServiceException;
}
